#include "aux_menu.h"

const int ajuste = HEIGHT >> 1;

void draw_rect_modo(char color, char* base)
{
        draw_rect(24*WIDTH, 5*HEIGHT - ajuste, (24+30)*WIDTH, 9*HEIGHT, color, base);
        draw_line(24*WIDTH, 6*HEIGHT + ajuste/2, (24+30)*WIDTH, 6*HEIGHT + ajuste/2, color, base);
}

void draw_rect_temporizado_focus(char color, char* base)
{
        draw_rect(25*WIDTH - 1, 7*HEIGHT - 1 - ajuste, (25+13)*WIDTH + 1, 9*HEIGHT + 1 - ajuste, color, base);
}

void draw_rect_temporizado_selected(char color, char* base)
{
        draw_rect(25*WIDTH, 7*HEIGHT - ajuste, (25+13)*WIDTH, 9*HEIGHT - ajuste, color, base);
}

void draw_rect_objectivos_focus(char color, char* base)
{
        draw_rect(41*WIDTH - 1, 7*HEIGHT - 1 - ajuste, (41+12)*WIDTH + 1, 9*HEIGHT + 1 - ajuste, color, base);
}

void draw_rect_objectivos_selected(char color, char* base)
{
        draw_rect(41*WIDTH, 7*HEIGHT - ajuste, (41+12)*WIDTH, 9*HEIGHT - ajuste, color, base);
}


void draw_rect_dificuldade(char color, char* base)
{
        draw_rect(24*WIDTH, 11*HEIGHT - ajuste, (24+30)*WIDTH, 15*HEIGHT, color, base);
        draw_line(24*WIDTH, 12*HEIGHT + ajuste/2, (24+30)*WIDTH, 12*HEIGHT + ajuste/2, color, base);
}

void draw_rect_facil_focus(char color, char* base)
{
        draw_rect(25*WIDTH - 1, 13*HEIGHT - 1 - ajuste, (25+7)*WIDTH - 1, 15*HEIGHT - 1 - ajuste, color, base);
}

void draw_rect_facil_selected(char color, char* base)
{
        draw_rect(25*WIDTH, 13*HEIGHT - ajuste, (25+7)*WIDTH, 15*HEIGHT - ajuste, color, base);
}

void draw_rect_medio_focus(char color, char* base)
{
        draw_rect(35*WIDTH - 1, 13*HEIGHT - 1 - ajuste, (35+7)*WIDTH + 1, 15*HEIGHT + 1 - ajuste, color, base);
}

void draw_rect_medio_selected(char color, char* base)
{
        draw_rect(35*WIDTH, 13*HEIGHT - ajuste, (35+7)*WIDTH, 15*HEIGHT - ajuste, color, base);
}

void draw_rect_dificil_focus(char color, char* base)
{
        draw_rect(44*WIDTH - 1, 13*HEIGHT - 1 - ajuste, (44+9)*WIDTH + 1, 15*HEIGHT + 1 - ajuste, color, base);
}

void draw_rect_dificil_selected(char color, char* base)
{
        draw_rect(44*WIDTH, 13*HEIGHT - ajuste, (44+9)*WIDTH, 15*HEIGHT - ajuste, color, base);
}


void draw_rect_bonus(char color, char* base)
{
        draw_rect(24*WIDTH, 17*HEIGHT - ajuste, (24+30)*WIDTH, 21*HEIGHT, color, base);
        draw_line(24*WIDTH, 18*HEIGHT + ajuste/2, (24+30)*WIDTH, 18*HEIGHT + ajuste/2, color, base);
}

void draw_rect_activados_focus(char color, char* base)
{
        draw_rect(25*WIDTH - 1, 19*HEIGHT - 1 - ajuste, (25+11)*WIDTH + 1, 21*HEIGHT + 1 - ajuste, color, base);
}

void draw_rect_activados_selected(char color, char* base)
{
        draw_rect(25*WIDTH, 19*HEIGHT - ajuste, (25+11)*WIDTH, 21*HEIGHT - ajuste, color, base);
}

void draw_rect_desactivados_focus(char color, char* base)
{
        draw_rect(39*WIDTH - 1, 19*HEIGHT - 1 - ajuste, (39+14)*WIDTH + 1, 21*HEIGHT + 1 - ajuste, color, base);
}

void draw_rect_desactivados_selected(char color, char* base)
{
        draw_rect(39*WIDTH, 19*HEIGHT - ajuste, (39+14)*WIDTH, 21*HEIGHT - ajuste, color, base);
}


void draw_rect_jogar_sair(char color, char* base)
{
        draw_rect(27*WIDTH, 24*HEIGHT - ajuste, (27+23)*WIDTH, 28*HEIGHT - ajuste, color, base);
}

void draw_rect_jogar_focus(char color, char* base)
{
        draw_rect(29*WIDTH - 1, 25*HEIGHT - 1 - ajuste, (29+7)*WIDTH + 1, 27*HEIGHT + 1 - ajuste, color, base);
}

void draw_rect_jogar(char color, char* base)
{
        draw_rect(29*WIDTH, 25*HEIGHT - ajuste, (29+7)*WIDTH, 27*HEIGHT - ajuste, color, base);
}

void draw_rect_sair_focus(char color, char* base)
{
        draw_rect(42*WIDTH - 1, 25*HEIGHT - 1 - ajuste, (42+6)*WIDTH + 1, 27*HEIGHT + 1 - ajuste, color, base);
}

void draw_rect_sair(char color, char* base)
{
        draw_rect(42*WIDTH, 25*HEIGHT - ajuste, (42+6)*WIDTH, 27*HEIGHT - ajuste, color, base);
}

